package com.example.demo.mapper;

import com.example.demo.domain.exam.UserExamAns;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface UserExamAnswerMapper extends EasyBaseMapper<UserExamAns> {

    List<UserExamAns> getByExamUserId(@Param("examId") Long examId, @Param("userId") Long userId);

    UserExamAns getByExamUserQuestionId(@Param("examId") Long examId, @Param("userId") Long userId, @Param("questionId") Long questionId);

    List<UserExamAns> getByExamId(@Param("examId") Long examId);

}
